-- GENERATED SPELL FOR [Warlord Morkh] --


function spell0_16964(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_16964', 663, 1)
end

function spell1_16964(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(11978,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16964', 6312, 1)
end

function spell2_16964(pUnit, Event) --@Riposte Stance,Self--
pUnit:FullCastSpellOnTarget(34080,pUnit)
pUnit:RegisterEvent('Sorts_16964', 10347, 1)
end

function Sorts_16964(pUnit, Event)
local choix_sorts_16964 = math.random(0, 2)
if choix_sorts_16964 == 0 then
pUnit:RegisterEvent('spell0_16964', 1, 1)
end
if choix_sorts_16964 == 1 then
pUnit:RegisterEvent('spell1_16964', 1, 1)
end
if choix_sorts_16964 == 2 then
pUnit:RegisterEvent('spell2_16964', 1, 1)
end
end

function mob16964_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16964', math.random(1500, 3000), 1)
end

function mob16964_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16964_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16964_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16964, 1, 'mob16964_Action')
RegisterUnitEvent(16964, 2, 'mob16964_Leave')
RegisterUnitEvent(16964, 3, 'mob16964_Kill')
RegisterUnitEvent(16964, 4, 'mob16964_Die')
